/**
 * 
 */
package com.swim.reservationswim.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.swim.reservationswim.entity.ReservationSwim;
import com.swim.reservationswim.dao.ReservationSwimDao;

/**
 * 预约游泳Service
 * @author ljw
 * @version 2022-08-10
 */
@Service
@Transactional(readOnly=true)
public class ReservationSwimService extends CrudService<ReservationSwimDao, ReservationSwim> {
	
	/**
	 * 获取单条数据
	 * @param reservationSwim
	 * @return
	 */
	@Override
	public ReservationSwim get(ReservationSwim reservationSwim) {
		return super.get(reservationSwim);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param reservationSwim
	 * @return
	 */
	@Override
	public Page<ReservationSwim> findPage(Page<ReservationSwim> page, ReservationSwim reservationSwim) {
		return super.findPage(page, reservationSwim);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param reservationSwim
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(ReservationSwim reservationSwim) {
		super.save(reservationSwim);
	}
	
	/**
	 * 更新状态
	 * @param reservationSwim
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(ReservationSwim reservationSwim) {
		super.updateStatus(reservationSwim);
	}
	
	/**
	 * 删除数据
	 * @param reservationSwim
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(ReservationSwim reservationSwim) {
		super.delete(reservationSwim);
	}
	
}